package 考试.mianxinag;

public class Student extends Person{
    private String school;

    public Student(String name,int age,String school) {
        super(name,age);
        this.school=school;
    }

    public Student() {
    }

    public Student(String school) {
        this.school = school;
    }

    @Override
    public void show() {
        super.show();
        System.out.println("School "+school);
    }


    /**
     * 获取
     * @return school
     */
    public String getSchool() {
        return school;
    }

    /**
     * 设置
     * @param school
     */
    public void setSchool(String school) {
        this.school = school;
    }

    public String toString() {
        return "Student{school = " + school + "}";
    }
}
